﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CKS2320.Common.Model
{
    public class PLCDataModel
    {
        public string Ip { get; set; }
        public string PLCType { get; set; }
        public string Rack { get; set; }
        public string Slot { get; set; }
        public int Index { get; set; }
    }
    public class PLCDataResult
    {
        public string result { get; set; } = string.Empty;
        public bool resultbool { get; set; }
        public string TDResult1 { get; set; } = string.Empty;
        public string TDResult2 { get; set; } = string.Empty;
        public string Ig028result { get; set; } = string.Empty;
        public string _3dscannerResult1 { get; set; } = string.Empty;
    }

    public class OPResult
    {
        public string partCode { get; set; } = string.Empty;
        public List<OP10Result> op10s { get; set; } = new();
        public List<OP20Result> op20s { get; set; } = new();
        public List<OP30Result> op30s { get; set; } = new();
    }

    public class OP10Result
    {
        /// <summary>
        /// 
        /// </summary>
        public bool? result { get; set; }
        /// <summary>
        /// ID
        /// </summary>
        public Guid? parentId { get; set; }
    }

    public class OP20Result
    {
        /// <summary>
        /// 
        /// </summary>
        public bool? result { get; set; }
        public Guid? parentId { get; set; }
        /// <summary>
        /// 耐压检测
        /// </summary>
        public bool? VoltageWithstandResult { get; set; }
        /// <summary>
        /// 相机检测
        /// </summary>
        public bool? CameraDetectionResult { get; set; }
    }
    public class OP30Result
    {
        /// <summary>
        /// 
        /// </summary>
        public bool? result { get; set; }
        /// <summary>
        /// ID
        /// </summary>
        public Guid? parentId { get; set; }
        /// <summary>
        /// 3d扫描仪检测结果
        /// </summary>
        public bool? _3dscannerResult1 { get; set; }
        /// <summary>
        /// 总长 
        /// </summary>
        public bool? TotalLengthResult { get; set; }
        /// <summary>
        /// C 基准-小端距离
        /// </summary>
        public bool? CrsmallEndDistanceResult { get; set; }
        /// <summary>
        /// C 基准-大端距离
        /// </summary>
        public bool? CrlargeEndDistanceResult { get; set; }
        /// <summary>
        /// C 基准-正面 1 波距离
        /// </summary>
        public bool? Crfront1WaveDistanceResult { get; set; }
        /// <summary>
        /// C 基准-正面 64 波距离
        /// </summary>
        public bool? Crfront64WaveDistanceResult { get; set; }
        /// <summary>
        /// 正面厚度1
        /// </summary>
        public bool? FrontThicknessResult1 { get; set; }
        /// <summary>
        /// 正面厚度2
        /// </summary>
        public bool? FrontThicknessResult2 { get; set; }
        /// <summary>
        /// 正面厚度3
        /// </summary>
        public bool? FrontThicknessResult3 { get; set; }
        /// <summary>
        /// 正面厚度4
        /// </summary>
        public bool? FrontThicknessResult4 { get; set; }
        /// <summary>
        /// 正面厚度5
        /// </summary>
        public bool? FrontThicknessResult5 { get; set; }
        /// <summary>
        /// 正面厚度6
        /// </summary>
        public bool? FrontThicknessResult6 { get; set; }
        /// <summary>
        /// 正面厚度7
        /// </summary>
        public bool? FrontThicknessResult7 { get; set; }
        /// <summary>
        /// 背面厚度1
        /// </summary>
        public bool? BackThicknessResult1 { get; set; }
        /// <summary>
        /// 背面厚度2
        /// </summary>
        public bool? BackThicknessResult2 { get; set; }
        /// <summary>
        /// 背面厚度3
        /// </summary>
        public bool? BackThicknessResult3 { get; set; }
        /// <summary>
        /// 背面厚度4
        /// </summary>
        public bool? BackThicknessResult4 { get; set; }
        /// <summary>
        /// 背面厚度5
        /// </summary>
        public bool? BackThicknessResult5 { get; set; }
        /// <summary>
        /// 背面厚度6
        /// </summary>
        public bool? BackThicknessResult6 { get; set; }
        /// <summary>
        /// 背面厚度7
        /// </summary>
        public bool? BackThicknessResult7 { get; set; }
        /// <summary>
        /// 小末端方向检查
        /// </summary>
        public bool? SmallEndDirectionInspectionResult { get; set; }
        /// <summary>
        /// 立面拱曲度
        /// </summary>
        public bool? FacadeCurvatureResult { get; set; }
    }
}
